package com.streetsmart;

/**
 * @author bhavani sudha
 */
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Alarm Receiver receives broadcast sent by alarm manager periodically
 * On receiving the broadcast it start the Notification Service class
 *
 */
public class AlarmReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Intent i = new Intent(context, NotificationService.class);
		Bundle b = intent.getExtras();
		i.putExtras(b);
		context.startService(i);
	}
}
